<?php
namespace Home\Model;
use Think\Model;

class UsersModel extends Model {
    public function getUserData($username, $pwd){
       return $this->where(array('username'=>$username, 'passwords'=>$pwd))->select();
    }

}

